package br.com.laeventos.service;

import java.util.ArrayList;

import br.com.laeventos.dao.ParticipanteDAO;
import br.com.laeventos.interfaces.InterfaceBanco;
import br.com.laeventos.model.Participante;

public class ParticipanteService implements InterfaceBanco {
	ParticipanteDAO participanteDao = new ParticipanteDAO();
	
	public ArrayList<Participante> retornar(int limit, String tituloBusca,
			int opcao) throws Exception {
		return participanteDao.retornar(limit, tituloBusca, opcao);
	}

	public boolean cadastrar(Object obj) throws Exception {
		return participanteDao.cadastrar(obj);
	}

	public boolean alterar(Object obj) throws Exception {
		return false;
	}

	public boolean deletar(Object obj) throws Exception {
		return participanteDao.deletar(obj);
	}

}
